<?php 

/**
 * @连接数据库
 */
	$servername = "localhost";
	$username = "root";
	$password = "";
	 
	// 创建连接
	$conn = new mysqli($servername, $username, $password);
	// 检测连接
	if ($conn->connect_error) {
	    die("连接失败: " . $conn->connect_error);
	}else {
		$conn->query("set names utf8");
		$conn->select_db("jifen");
	}
/**
 * 屏蔽notice
 */
error_reporting(E_ALL ^ E_NOTICE);
 ?>